package com.cskaoyan.vo.wx;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class WxCouponMyListVo {

    /**
     * data : [{"id":50,"name":"优惠券名称","desc":"介绍优惠券功能","tag":"最新最热","min":"11.00","discount":"10.00","startTime":"2021-05-12 10:21:03","endTime":"2021-05-13 00:00:00"},{"id":44,"name":"新的优惠券","desc":"介绍","tag":"标签","min":"122.00","discount":"12.00","startTime":"2021-05-26 00:00:00","endTime":"2021-05-31 00:00:00"},{"id":45,"name":"zxc","desc":"zcx","tag":"zxc","min":"0.00","discount":"0.00","startTime":"2021-05-11 00:00:00","endTime":"2021-05-31 00:00:00"},{"id":16,"name":"满一百减五十","desc":"啦啦啦啦","tag":"无限制","min":"0.00","discount":"0.00","startTime":"2021-05-11 00:00:00","endTime":"2021-05-20 00:00:00"},{"id":38,"name":"ad","desc":"da","tag":"ada","min":"10.00","discount":"10.00","startTime":"2021-05-24 00:00:00","endTime":"2021-05-26 00:00:00"}]
     * count : 18
     */

    private int count;
    private List<DataBean> data;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public WxCouponMyListVo() {
    }

    public WxCouponMyListVo(int count, List<DataBean> data) {
        this.count = count;
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 50
         * name : 优惠券名称
         * desc : 介绍优惠券功能
         * tag : 最新最热
         * min : 11.00
         * discount : 10.00
         * startTime : 2021-05-12 10:21:03
         * endTime : 2021-05-13 00:00:00
         */

        private int id;
        private String name;
        private String desc;
        private String tag;
        private String min;
        private String discount;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date startTime;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date endTime;

        public int getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public String getDesc() {
            return desc;
        }

        public String getTag() {
            return tag;
        }

        public String getMin() {
            return min;
        }

        public String getDiscount() {
            return discount;
        }

        public Date getStartTime() {
            return startTime;
        }

        public Date getEndTime() {
            return endTime;
        }

        public DataBean setId(int id) {
            this.id = id;
            return this;
        }

        public DataBean setName(String name) {
            this.name = name;
            return this;
        }

        public DataBean setDesc(String desc) {
            this.desc = desc;
            return this;
        }

        public DataBean setTag(String tag) {
            this.tag = tag;
            return this;
        }

        public DataBean setMin(String min) {
            this.min = min;
            return this;
        }

        public DataBean setDiscount(String discount) {
            this.discount = discount;
            return this;
        }

        public DataBean setStartTime(Date startTime) {
            this.startTime = startTime;
            return this;
        }

        public DataBean setEndTime(Date endTime) {
            this.endTime = endTime;
            return this;
        }
    }
}
